package com.jzoom.zoom.pay.models;

import com.jzoom.zoom.pay.RefundStatus;

public class Refund extends CreateRefund {
	
	private String id;
	
	/**
	 * 商户id
	 */
	private String mchId;
	
	/**
	 * 支付渠道的id
	 */
	private String transId;
	
	/**
	 * 创建时间
	 */
	private Integer createTime;
	
	/**
	 * 退款时间
	 */
	private Integer refundTime;
	
	private String status;

	/**
	 * 如果失败，那么有记录
	 */
	private String errCode;
	
	/**
	 * 如果失败，那么有记录
	 */
	private String errMsg;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
	public boolean isSuccess() {
		return RefundStatus.success.is(status);
	}

	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Integer refundTime) {
		this.refundTime = refundTime;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	
	
	

}
